<?php

namespace frontend\modules\exmall\controllers;

use Yii;
use frontend\components\Controller;

/**
 * 兑换接口表
 * ExchangeController controller for the `exmall` module
 */
class ExchangeController extends Controller {

    /**
     * @inheritdoc
     */
    protected function rules() {
        return [
            [
                'allow' => true,
                'roles' => ['@'],
            ],
        ];
    }

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['POST'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function actionIndex() {
        return [
            'id' => 11111,
            'token' => $this->token
        ];
    }

}
